CC=gcc
CFLAGS=-Wall -g
LIBPATH=../../../../common/c
INCLS=-I$(LIBPATH)/include -I../../src/include

TARGET=svr_skeleton.a
OBJS=main.o listener.o worker.o

.PHONY : all clean

all : $(TARGET)

$(TARGET) : $(OBJS)
	ar -crl $@ $?
	chmod 644 $@

$(OBJS) : %.o : %.c
	$(CC) $(CFLAGS) $(INCLS) -c -o $@ $<

clean :
	rm -f $(OBJS) $(TARGET)
